/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tpdisenio2009.mvp.display;

import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import java.awt.event.WindowListener;
import java.util.List;

/**
 *
 * @author DeuterioX
 */
public interface LoginView extends View {

    public static final int DOCUMENT_TYPE = 0;
    public static final int DOCUMENT = 1;
    public static final int PASSWORD = 2;

    void showError( int focuElement, String errorMessage, String titleMessageWindow );
    void showOK( int focuElement, String errorMessage, String titleMessageWindow );

    void addNewUserListener( ActionListener listener );
    void removeNewUserListener( ActionListener listener );

    void addRecoverPasswordListener( ActionListener listener );
    void removeRecoverPasswordListener( ActionListener listener );

    void addLoginListener( ActionListener listener);
    void removeLoginListener( ActionListener listener );

    void addDocumentTypeChangeListener( ItemListener listener );
    void removeDocumentTypeChangeListener( ItemListener listener );

    void addExitAPPListener( WindowListener listener );
    void removeExitAPPListener( WindowListener listener );

    String getDocument();
    String getPassword();

    void setDocumentType( List<String> documentTypes);
    String getDocumentType();
}
